<p{if isset($attributes.class)} class="{$attributes.class}"{/if}>
    <input type="text" {if isset($attributes.class)} class="{$attributes.class}"{/if} id="{$attributes.name}" name="{$formName}[{$attributes.name}]" alt="{$attributes.label}" value="{if isset($value)}{$value}{else}{if isset($attributes.value)}{$attributes.value}{/if}{/if}" onfocus="if (this.value==this.alt) this.value='';" onblur="if (this.value=='') this.value=this.alt;" />
    {if isset($error)}
    <span class="form-error">{$error}</span>
    {/if}
    {if isset($attributes.guideline)}
    <span class="form-guideline">{$attributes.guideline}</span>
    {/if}
</p>